package de.graffiti.beans;

import java.util.logging.Logger;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import de.graffiti.interfaces.LoginService;

public class EditProfile
{
	private static final Logger log = Logger.getLogger(Login.class.getName());
	private String logUser  = "";
	Login loginData;
	LoginService loginService;
	
	public EditProfile(){
		DBConnection db = new DBConnection();
		loginService = (LoginService) db.getService("LoginServiceBean/remote", LoginService.class);
	}
	
	public String editProfile(){
		log.info("############# "+loginData.getName()+" ###############");
		logUser = loginData.getName();
		return "saved";
	}

	public void setLogUser(String logUser)
	{
		this.logUser = logUser;
	}

	public String getLogUser()
	{
		return logUser;
	}
	
	
}
